<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增POS绑定明细')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-tBankinfo-addPosBinding">
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">绑定ID：</label>
            <div class="col-sm-8">
                <input name="bid" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">终端号：</label>
            <div class="col-sm-8">
                <input name="bno" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">绑定状态：</label>
            <div class="col-sm-8">
                <input name="status" oninput="value=value.replace(/[^\d]/g,'')" class="form-control" type="text" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">绑定类型：</label>
            <div class="col-sm-8">
                <input name="type" oninput="value=value.replace(/[^\d]/g,'')" class="form-control" type="text" required>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
    var prefix = ctx + "tBankinfo/tBankinfo"
    $("#form-binding-add").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/addPosBinding", $('#form-tBankinfo-addPosBinding').serialize());
        }
    }
</script>
</body>
</html>